﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class CMS_TimeSheet : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            MasterPage_MasterPage_CMS mmc = (MasterPage_MasterPage_CMS)this.Page.Master;
            mmc.TimeSheetHover();

            mmc.LeftExist = false;


            Usas.Common.Cms.CurrentInfo cinfo = new Usas.Common.Cms.CurrentInfo();


            object LoginPurViewSys1OprKey = cinfo.GetLoginPurViewSys1OprKey();

            object[] lg = (object[])LoginPurViewSys1OprKey;

            if (lg.Length > 0)
            {

               ifr.Text = " <iframe width='100%' scrolling='no' frameborder='no' height='900px' src='" +
                   //"http://localhost:10402/UsasInformation" + "TimeSheet/Default.aspx?sro=" + Server.UrlEncode(lg[0].ToString()) + "&ename=" + Server.UrlEncode(lg[1].ToString()) + "&eid=" + lg[2].ToString() + "&did=" + lg[3].ToString() + "'></iframe>";
                   System.Configuration.ConfigurationManager.AppSettings["UsasInformationIIS"] + "TimeSheet/Default.aspx?sro=" + Server.UrlEncode(lg[0].ToString()) + "&ename=" + Server.UrlEncode(lg[1].ToString()) + "&eid=" + lg[2].ToString() + "&did=" + lg[3].ToString() + "'></iframe>";
                /*
              ifr.Text = " <iframe width='100%' scrolling='no' frameborder='no' height='100%' src='" +
                  "http://192.168.0.105/UsasInformation/TimeSheet/default.aspx?sro=" + Server.UrlEncode(lg[0].ToString()) + "&ename=" + Server.UrlEncode(lg[1].ToString()) + "&eid=" + lg[2].ToString() + "&did=" + lg[3].ToString() + "'></iframe>";
               */
            }

        }
    }
}
